home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Common / LargeHouse.script < prev    next >
Text File  |  2001-09-27  |  1KB  |  61 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CLargeHouseMesh
  11. {
  12.   string MeshFile = "Models/B_House_l.mesh";
  13.   string SkinFile = "Models/B_House_l.skin";
  14. }
  15.  
  16. class CLargeHouseStateControl extends CUnitLifeControl
  17. {
  18.   void CLargeHouseStateControl()
  19.   {
  20.     CUnitLifeControl(5000.0);
  21.     m_DestroyPause = 20.0;
  22.     m_ExplosionId  = "EXPLID_BuildingExplosion";
  23.   }
  24. }
  25.  
  26. // Building without ground control (for use in villages)
  27. class CBaseLargeHouse extends CBuilding, CUnitWithStateControl
  28. {
  29.   void CBaseLargeHouse()
  30.   {
  31.     InitializeModelAsStatic("CLargeHouseMesh");
  32.     CUnitWithStateControl("CLargeHouseStateControl");
  33.   }
  34. }
  35.  
  36. class CBaseSovietLargeHouse extends CBaseLargeHouse
  37. {
  38.   void CBaseSovietLargeHouse()
  39.   {
  40.     Core_AddClassificator("Russian");
  41.     Core_AddClassificator("GroundUnit");
  42.   }
  43. }
  44.  
  45. class CMountedSovietLargeHouse extends CBaseSovietLargeHouse
  46. {
  47.   void CMountedSovietLargeHouse()
  48.   {
  49.     InitializeGroundControl();
  50.   }
  51. }
  52.  
  53. // Large game object
  54. class CMountedLargeHouse extends CBaseLargeHouse
  55. {
  56.   void CMountedLargeHouse()
  57.   {
  58.     InitializeGroundControl();
  59.   }
  60. }
  61.